"""web_server URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from account import views

urlpatterns = [
    url(r'^register/', views.register_admin, name='register_admin'),
    url(r'^cms_login/', views.cms_login, name='cms_login'),
    url(r'^cms_logout/', views.cms_logout, name='cms_logout'),
    url(r'^cms_client_register/', views.client_register, name='cms_client_register'),
    url(r'^cms_client_login/', views.client_login, name='cms_client_login'),
    url(r'^cms_personnel_register/', views.personnel_register, name='cms_personnel_register'),
    url(r'^cms_client_reset_password/', views.reset_password, name='cms_client_reset_password'),
    url(r'^cms_client_modif_password/(?P<userid>.*)/$', views.modif_password, name='cms_client_modif_password'),
    url(r'^cms_user_home/(?P<userid>.*)/$', views.userhome, name='cms_user_home'),
    url(r'^cms_modifusercenter/(?P<userid>.*)/$', views.modifusercenter, name='cms_modifusercenter'),
    url(r'^cms_personnel_home/', views.personnel_home, name='cms_personnel_home'),
    url(r'^cms_personel_modifhome/(?P<userid>.*)/$', views.personel_modifhome, name='cms_personel_modifhome'),
    url(r'^cms_personnel_display/', views.personnel_display, name='cms_personnel_display'),

]
